<%--
  Created by IntelliJ IDEA.
  User: 11954
  Date: 2022/3/29
  Time: 15:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 引入jstl标签 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- 引入jstl的函数 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<html>
<head>
    <title>注册</title>
    <link rel="stylesheet" href="css/login.css">
</head>
<body>
<div class="title_div">
    <h1>学员管理系统——管理端注册</h1>
</div>
<div class="core_div">
    <form action="newscaster" method="post" enctype="multipart/form-data">
        <table>
            <tr>
                <td>用户名:</td>
                <td><input name="username" placeholder="请输入用户名">
                    <c:if test="${param.status =='2' }">
                        <span class="error">用户名不能为空！</span>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td>密码:</td>
                <td><input type="password" name="password" placeholder="请输入密码">
                    <c:if test="${param.status =='1' }">
                        <span class="error">密码输入错误！</span>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td>重复密码:</td>
                <td><input type="password" name="agin_password" placeholder="请输入新密码"></td>
            </tr>
            <tr>
                <td>头像:</td>
                <td> <input type="file" name="photo"></td>
            </tr>
            <tr>
                <td>性别:</td>
                <td> 男<input type="radio" name="sex" value="男">
                    女<input type="radio" name="sex" value="女">
                </td>
            </tr>
            <tr>
                <td>权限:</td>
                <td>添加<input type="checkbox" name="power" value="1">
                    删除<input type="checkbox" name="power" value="2">
                    修改<input type="checkbox" name="power" value="3">
                    查看<input type="checkbox" name="power" value="4">
                </td>
            </tr>
            <tr>
                <td>真实姓名:</td>
                <td><input  name="truename" placeholder="请输入真实姓名"></td>
            </tr>
            <tr>
                <td>出生日期:</td>
                <td><input  name="birthday" type="datetime-local"></td>
            </tr>
            <tr>
                <td>家庭地址:</td>
                <td><input name="homepalce" placeholder="请输入地址"></td>
            </tr>
            <tr>
            <tr>
                <td>籍贯:</td>
               <td>
                   <select name="jiguan">
                       <option value="1">广东</option>
                       <option value="2">广西</option>
                       <option value="3">江西</option>
                       <option value="4">江苏</option>
                   </select>
               </td>
        </tr>
            <tr>
                <td colspan="2" style="text-align: center">
                    <div class="but">
                        <button type="submit">注册</button>
                        <button type="reset">重置</button>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
